package com.ming.springboot.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by mqsi on 2022/5/13 19:33
 */
@RestController
public class HelloController {

	@GetMapping("/hello")
	public String hello(Model model){
		Map<String, Object> map = model.asMap();
		System.out.println(map);
		return "Hello controller advice";
	}
}
